package com.kingyun.gpsinspection.purificationservice.dao.mapper.iam.qhse;


import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.qhse.ContingencyDisposition;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.qhse.ContingencyPlan;

import java.util.List;

public interface ContingencyDispositionMapper {
    /**
     * 删除
     * @param contingencyDispositionlId
     * @return
     */
    int deleteByPrimaryKey(List<String> contingencyDispositionlId);
    /**
     * 新增
     * @param record
     * @return
     */
    int insertSelective(ContingencyDisposition record);
    /**
     * 根据id查询
     * @param contingencyDispositionlId
     * @return
     */
    ContingencyDisposition selectByPrimaryKey(String contingencyDispositionlId);

    /**
     * 更新
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(ContingencyDisposition record);
    /**
     * 总条数
     * @param bootstrapSearchBean
     * @return
     */
    Integer queryCount(BootstrapSearchBean bootstrapSearchBean);

    /**
     * 列表
     * @param bootstrapSearchBean
     * @return
     */
    List<ContingencyPlan> queryList(BootstrapSearchBean bootstrapSearchBean);

    /**
     * 判断应急处置名是否存在
     * @param disName 应急处置名
     * @return
     */
    int isExitByName(String disName);
}